package guowenlong.golf.ui.personal.achievement;

import android.os.Bundle;
import android.support.v7.app.ActionBar;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
import android.view.Window;
import android.widget.Button;
import android.widget.TextView;

import butterknife.BindView;
import butterknife.ButterKnife;
import butterknife.OnClick;
import de.hdodenhof.circleimageview.CircleImageView;
import guowenlong.golf.R;

/**
 * des   : 个人成绩 author: Administrator email : guowenlong20000@gmail.com time  : 2017年02月13日 上午 11:57.
 */

public class AchievementActivity extends AppCompatActivity {


  @BindView(R.id.tv_back)
  TextView tvBack;
  @BindView(R.id.btn_filter)
  Button btnFilter;
  @BindView(R.id.civ_userhead_achievement)
  CircleImageView civUserheadAchievement;
  @BindView(R.id.tv_username)
  TextView tvUsername;

  @Override
  protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    requestWindowFeature(Window.FEATURE_NO_TITLE);
    restoreActionBar();
    setContentView(R.layout.activity_achievement);
    ButterKnife.bind(this);
  }

  public void restoreActionBar() {
    ActionBar actionBar = getSupportActionBar();
    actionBar.setNavigationMode(ActionBar.NAVIGATION_MODE_STANDARD);
    actionBar.hide();
    actionBar.setDisplayShowTitleEnabled(false);
  }

  @OnClick({R.id.tv_back, R.id.btn_filter})
  public void onClick(View view) {
    switch (view.getId()) {
      case R.id.tv_back:
        finish();
        break;
      case R.id.btn_filter:
        break;
    }
  }
}